# URL一些链接地址
HUAWEI_URL_PREFIX = {
    'cn': 'https://developerlf.hwcloudtest.cn/consumer/cn/doc',
    'en': 'https://developerlf.hwcloudtest.cn/consumer/en/doc'
}
DOCUMENT_PORTAL = 'https://svc-drcn.developerlf.hwcloudtest.cn:8446/community/servlet/consumer/cn/documentPortal'
GET_CATALOG_TREE = DOCUMENT_PORTAL + '/getCatalogTree'
GET_DOCUMENT_BY_ID = DOCUMENT_PORTAL + '/getDocumentById'
HARMONYOS_SAMPLES_GITEE = 'https://gitee.com/organizations/harmonyos_samples/projects'
HARMONYOS_SAMPLES_DEVELOPER = ''

# data常量
CATALOG_NAME_GUIDES = 'harmonyos-guides'
OBJECT_ID_GUIDES = 'application-dev-guide'

CATALOG_NAME_API = 'harmonyos-references'
OBJECT_ID_API = 'development-intro-api'

CATALOG_NAME_BEST_PRACTICES = 'best-practices'
OBJECT_ID_BEST_PRACTICES = 'bpta-harmonyos-features'

CATALOG_NAME_FAQ = 'harmonyos-faq'
OBJECT_ID_FAQ = 'faqs-ux-design'

CATALOG_NAME_OVERVIEW = 'harmonyos-releases'
OBJECT_ID_OVERVIEW = 'overview-allversion'

# 代理配置
proxies = {
    'http': 'http://y30054261:qwer%231234@proxy.huawei.com:8080',
    'https': 'http://y30054261:qwer%231234@proxy.huawei.com:8080',
}

# headers配置
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
}

MAX_SEMAPHORE = 200  # 最大协程数

# 白名单
WHITELIST = [
    'https://registry.khronos.org/vulkan/#apispecs',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/?channel=ICS0000',
    'https://communityfile-drcn.op.dbankcloud.cn/FileServer/getFile/cmtyPub/011/111/111/0000000000011111111.20231214182004.98460787201488605095331386542935:50001231000000:2800:E124109F20E5BC94DDB0972D227CC54E98582216E69CA695065ADF1A51632F62.xlsx?needInitFileName=true',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/',
    'https://developer.huawei.com/consumer/cn/support/feedback#/',
    'https://developer.huawei.com/consumer/cn/download/deveco-studio',
    'https://developer.huawei.com/consumer/cn/download/',
    'https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v?f=255&MSPPError=-2147217396',
    'https://www.actalis.it/area-download',
    'https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/reference/hyper-v-requirements',
    'https://semver.org/lang/zh-CN/',
]
